class KaoDiGua(object):
    def __init__(self):
        self.time = 0
        self.status = '生的'
        self.tiao_liao = []

    def __str__(self):
        return f'地瓜已经烤了{self.time}分钟，现在是{self.status}，味道是{self.tiao_liao}'

    def cook_time(self,time):
        self.time += time
        if self.time < 3:
            self.status = '生的'
        elif 3<= self.time < 6:
            self.status = '半生不熟'
        elif 6<= self.time < 9:
            self.status = '熟了'
        else:
            self.status = '烤糊了'

    def add_tiaoliao(self,tiaoliao):
        self.tiao_liao.append(tiaoliao)

digua = KaoDiGua()
print(digua)
digua.cook_time(2)
print(digua)
digua.cook_time(2)
digua.add_tiaoliao('五香')
print(digua)
digua.cook_time(2)
print(digua)
digua.cook_time(2)
print(digua)
digua.cook_time(2)
print(digua)